package com.you.tomcat.netty.servlet;


import com.you.tomcat.netty.http.HttpServlet;
import com.you.tomcat.netty.http.MyRequest;
import com.you.tomcat.netty.http.MyResponse;

/**
 * second servlet
 */
public class SecondServlet extends HttpServlet {

    @Override
    public void doGet(MyRequest request, MyResponse response) throws Exception {
        doPost(request, response);
    }

    @Override
    public void doPost(MyRequest request, MyResponse response) throws Exception {
        System.out.println("--------second servlet------");
        response.write("This is second servlet!");
    }
}
